import fetch from 'common/fetch'
import comment from 'common/uri/comment'

export function getComments(params) {
  return fetch({
    url: comment.comments,
    method: 'get',
    params
  })
}


export function getTotalComment(params) {
  return fetch({
    url: comment.total,
    method: 'get',
    params
  })
}

export function getTopicCommentData(params) {
  return fetch({
    url: comment.topic,
    method: 'get',
    params
  })
}

export function getTopicSentimentData(params) {
  return fetch({
    url: comment.sentiment,
    method: 'get',
    params
  })
}


export function getCommentDataByArticleId(params) {
  return fetch({
    url: comment.articleComment,
    method: 'get',
    params
  })
}

export function getArticleSentimentData(params) {
  return fetch({
    url: comment.articleSentiment,
    method: 'get',
    params
  })
}
